<?php
namespace App\Exports\Bureau;

use App\Models\Bureau\WxClubTeam;
use Maatwebsite\Excel\Concerns\FromCollection;

class UserInfoFillExportTeam implements FromCollection
{

    protected $team = null;
    public function __construct(WxClubTeam $team) {
        $this->team = $team;
    }

    public function collection()
    {
        // 返回第一个工作表的数据
        return collect([
            ['Name', 'Email'],
            ['John Doe', 'john@example.com'],
            // ...
        ]);
    }
}